package net.fei.scan.quick.entity;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

/**
 * Create by Xianban
 * 2023/11/8 11:57
 */

public class History {
    private Long id;
    private int image;
    private String title;
    private String content;
    private String currentTime;
    private String type;
    private int status;

    private String address;
    public History() {
    }

    public History(int image, String title) {
        this.image = image;
        this.title = title;
    }

    public History(String title, String content, String currentTime, String type, String address) {
        this.title = title;
        this.content = content;
        this.currentTime = LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy/MM/dd HH:mm:ss"));
        this.type = type;
        this.address = address;
    }

    public History(Long id, String title, String content, String currentTime, String type, int image) {
        this.id = id;
        this.image = image;
        this.title = title;
        this.content = content;
        this.currentTime = LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy/MM/dd HH:mm:ss"));
        this.type = type;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getCurrentTime() {
        return currentTime;
    }

    public void setCurrentTime(String currentTime) {
        this.currentTime = currentTime;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public int getImage() {
        return image;
    }

    public void setImage(int image) {
        this.image = image;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    @Override
    public String toString() {
        return "History{" +
                "id=" + id +
                ", image=" + image +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", currentTime='" + currentTime + '\'' +
                ", type='" + type + '\'' +
                ", status=" + status +
                ", address='" + address + '\'' +
                '}';
    }
}
